<?php

namespace App\Models\V1;

use Illuminate\Database\Eloquent\Model;

class LessonsBanner extends Model
{
    protected $fillable = ['banner_img', 'content_id', 'banner_title', 'banner_type', 'content_type'];
    protected $table    = "banners";

    public function hasLessonsOne()
    {
        return $this->hasOne(Lessons::class, 'id', 'content_id');
    }
}
